home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
TOC.DIR
/
00006_Script_pplx
< prev
next >
Wrap
Text File
|
1995-11-21
|
2KB
|
77 lines
-- assigns preload frames to a label name
--- ancestor of spb
--property myLabelName, myMovieName, startFrame, endFrame
--
--on birth me, MN, LN, SF, EF
-- set myLabelName to string(LN)
-- set myMovieName to string(MN)
-- if integerP(SF) then set startFrame to SF
-- else set startFrame to (the value of label(SF))
-- if integerP(EF) then set endFrame to EF
-- set endFrame to (the value of label(EF))
-- return me
--end birth
--dump the loaded, preload and go
on pplkoadNGo startFrame, endFrame, myMovieName
if myMovieName&".DIR" = the movieName then
pplload startFrame, endFrame
end if
justGo me
end loadNGo
--dump the loaded and preload
on pplload startFrame, endFrame
global gLastPreloadStartFrame, gLastPreloadEndFrame--, gCursor
--if gLastPreloadStartFrame = startFrame and gLastPreloadEndFrame = endFrame then
--unload gLastPreloadStartFrame, gLastPreloadEndFrame
-- dmd
--put ">>> load in cast 6 ppl TOC.DIR note unloading cast 1,5000"
--put the freeBytes
-- set dontChangeCursor = (gCursor = 4)
-- set gCursor = 4
-- cursor gCursor
--
cursor 4
if the freeBytes < ramNeeded(startFrame + 1, endFrame - 1) then
--put ">>> pplload: note unloading cast 1,1000"
--put ">>> needed Ram: " & ¼
startFrame + 1 && endFrame - 1 ¼
&& ramNeeded(startFrame, endFrame - 1)
unloadCast 1,1000
if the machineType <> 256 then maxmem()
--put the freeBytes
end if
set the preLoadEventAbort = 0
--put ">>>pplload preloading frame: " & startFrame & "-" & (endFrame-1)
preload startFrame, (endFrame -1)
set the preLoadEventAbort = 1
--put the freebytes
--put ">>>pplx loading from frames: " & startFrame & " to " & endFrame
-- if not dontChangeCursor then
-- set gCursor = -1
-- cursor gCursor
-- end if
--
cursor -1
set gLastPreloadStartFrame to startFrame
set gLastPreloadEndFrame to endFrame
end load
--just go
on ppljustGo myMovieName, myLabelName
if myMovieName&".DIR" = the movieName then
go to frame myLabelName
else go to frame myLabelName of movie myMovieName
end justGo